//
//  SPPreferencesController.h
//  Sophie
//
//  Created by Anton Chebotaev on 4/11/09.
//  Copyright 2009 IFMO. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <LJClientKit/LJClientKit.h>
#import "SPMusicFormatToken.h"

/*!
 @class SPPreferencesController
 @abstract Class is designed to manage application preferences and store related constants
 @discussion   
 */
@interface SPPreferencesController : NSObject {

}

+ (SPPreferencesController *)sharedController;

@property (readwrite, assign) NSString * defaultUsername;

@property (readwrite) BOOL shouldCreateDocumentOnStart;
@property (readwrite) BOOL shouldDetectMusicForNewEntry;

@property (readwrite) int defaultPrivacyLevel;
@property (readwrite) int defaultPrivacyGroupHash;

@property (readwrite) BOOL shouldUseAutosave;
@property (readwrite) int defaultAutosaveInterval; // in minutes

@property (readwrite) BOOL shouldCheckForUpdates;
@property (readwrite) int defaultUpdatesCheckInterval; // in days
@property (readwrite, assign) NSDate *lastUpdateCheck;

@property (readwrite, assign) NSArray *musicFormat; // array of SPMusicFormatTokens

@end
